// 园区表计维护
import request from '@/utils/request'
// 查询分页列表信息
export const gettablelistapi = params => request.get('mbm-microservice-biz/mbm/archives/room/page', { params })
// 根据建筑群id查询区域房间列表
export const getroomlistapi = params => request.get('mbm-microservice-biz/mbm/archives/roomSet/getListByBuildingSetId', { params })
// 分页查询物联设备列表
export const getbiaojilistapi = params => request.get('mbm-microservice-biz/mbm/archives/room/unSetDeviceList', { params })
// 新增表计
export const postbiaojiapi = data => request.post('mbm-microservice-biz/mbm/archives/room/add', data)
// 删除表计
export const deletebiaojiapi = data => request.post(`mbm-microservice-biz/mbm/archives/room/delete?id=${data.id}`)
// /修改表计
export const putbiaojiapi = data => request.post('mbm-microservice-biz/mbm/archives/room/update', data)
// 根据建筑群id查询服务费列表
export const getfuwufeiapi = params => request.get('mbm-microservice-biz/mbm/config/coverFee/getListByBuildingSetId', { params })
// 查询电价模板列表信息
export const getdianjiaapi = params => request.get('pio-microservice-biz/cbm/ele-price-template/list', { params })
// 撤销
export const postchexiaoapi = data => request.post(`mbm-microservice-biz/mbm/archives/room/revoke?id=${data.id}`)
// 投运
export const posttouyunapi = data => request.post('mbm-microservice-biz/mbm/archives/room/commission/public/meter', data)
// 退运
export const posttuiyunapi=data=>request.post('mbm-microservice-biz/mbm/archives/room/return/public/meter',data)